package com.eos.orm.mybatis.dao.impl;

import java.util.ArrayList;
import java.util.List;

import org.apache.ibatis.session.SqlSession;

import com.eos.orm.mybatis.dao.ViewRoleMenuMapper;
import com.eos.orm.mybatis.model.ViewRoleMenu;
import com.eos.orm.mybatis.model.ViewRoleMenuExample;

/**
 * view_role_menu视图的查询操作
 * 
 * @author sz
 * 
 */
public class ViewRoleMenuMapperImpl extends AbstractSqlSessionFactory implements
		ViewRoleMenuMapper {

	public int countByExample(ViewRoleMenuExample example) {
		return 0;
	}

	public int deleteByExample(ViewRoleMenuExample example) {
		return 0;
	}

	public int insert(ViewRoleMenu record) {
		return 0;
	}

	public int insertSelective(ViewRoleMenu record) {
		return 0;
	}

	public List<ViewRoleMenu> selectByExample(ViewRoleMenuExample example) {
		List<ViewRoleMenu> templist = new ArrayList<ViewRoleMenu>();
		SqlSession session = sqlSessionFactory.openSession();
		try {
			ViewRoleMenuMapper mapper = session
					.getMapper(ViewRoleMenuMapper.class);
			templist = mapper.selectByExample(example);
			mapper = null;
		} catch (Exception e) {
			System.out
					.println("com.eos.orm.mybatis.dao.impl.ViewRoleMenuMapperImpl.selectByExample throws exception:"
							+ e.getMessage());
		} finally {
			session.close();
		}
		return templist;
	}

	public int updateByExample(ViewRoleMenu record, ViewRoleMenuExample example) {
		return 0;
	}

	public int updateByExampleSelective(ViewRoleMenu record,
			ViewRoleMenuExample example) {
		return 0;
	}

}
